package com.example.userlogincenter.userCenter.util;

import cn.hutool.core.util.IdUtil;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.symmetric.SymmetricAlgorithm;

/**
 *
 * 随机产生工具类
 * */
public class randomUtils {


    /**随机生成密钥*/
    public static byte[] randomKey(){
        return SecureUtil.generateKey(SymmetricAlgorithm.AES.getValue()).getEncoded();
    }


    public static String randomAccess(){
        return IdUtil.simpleUUID();
    }
}



